* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #90EE90, #228B22);
    font-family: 'Microsoft YaHei', sans-serif;
    padding: 20px;
}

.start-screen {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 600px;
    width: 90%;
    backdrop-filter: blur(10px);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.start-screen:hover {
    transform: translateY(-5px);
}

.start-content h1 {
    color: #2E7D32;
    margin-bottom: 30px;
    font-size: 3em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
}

.game-rules {
    margin: 30px 0;
    text-align: left;
    background: rgba(33, 150, 243, 0.1);
    padding: 20px;
    border-radius: 15px;
}

.game-rules h2 {
    color: #1976D2;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.game-rules ul {
    list-style-type: none;
    padding-left: 0;
}

.game-rules li {
    margin: 15px 0;
    color: #555;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.game-rules li:before {
    content: '•';
    color: #4CAF50;
    position: absolute;
    left: 0;
    font-size: 1.5em;
}

.difficulty-select {
    margin: 30px 0;
}

.difficulty-select h2 {
    color: #1976D2;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.difficulty-select .btn {
    margin: 10px;
    min-width: 120px;
    transform: scale(1);
    transition: transform 0.2s ease;
}

.difficulty-select .btn:hover {
    transform: scale(1.05);
}

.game-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    max-width: 800px;
    width: 90%;
}

.game-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    font-size: 1.3em;
    background: rgba(76, 175, 80, 0.1);
    padding: 15px;
    border-radius: 15px;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(139, 195, 74, 0.1);
    border-radius: 15px;
}

.hole {
    width: 100px;
    height: 100px;
    background: #3E2723;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 -10px 15px rgba(0, 0, 0, 0.4);
    border: 4px solid #1B0000;
    transition: transform 0.2s ease;
}

.hole:hover {
    transform: scale(1.02);
}

.mole {
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #E0E0E0, #9E9E9E);
    border-radius: 50%;
    position: absolute;
    left: 10px;
    bottom: -80px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Arial Black', sans-serif;
    color: #FFD700;
    font-size: 14px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transform-origin: bottom;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.mole::after {
    content: '地鼠';
    position: absolute;
}

.mole.show {
    bottom: 10px;
    animation: popUp 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.mole.hit {
    background: linear-gradient(145deg, #FF6B6B, #FF4500);
    animation: hitEffect 0.3s ease-out;
}

.btn {
    padding: 12px 25px;
    font-size: 1.1em;
    background: linear-gradient(145deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background: linear-gradient(145deg, #45a049, #388E3C);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.game-controls {
    text-align: center;
    margin-top: 20px;
}

.game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.game-over.hidden {
    display: none;
}

.game-over-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    animation: popIn 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

.game-over h2 {
    margin-bottom: 25px;
    color: #2E7D32;
    font-size: 2em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

@keyframes popUp {
    0% { transform: scale(0.3); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes hitEffect {
    0% { transform: scale(1); }
    50% { transform: scale(0.8); }
    100% { transform: scale(1); }
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.mole.shake {
    animation: shake 0.2s ease-in-out;
}

.combo-display {
    color: #FF4500;
    font-weight: bold;
}

.score-board {
    color: #4CAF50;
    font-weight: bold;
}

.timer {
    color: #2196F3;
    font-weight: bold;
}

.achievements-list {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.achievement-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.achievement-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
}

.achievement-card.unlocked {
    background: linear-gradient(145deg, rgba(76, 175, 80, 0.6), rgba(69, 160, 73, 0.6));
}

.achievement-card.locked {
    filter: grayscale(1);
    opacity: 0.7;
}

.achievement-icon {
    font-size: 2em;
    margin-right: 15px;
}

.achievement-info {
    flex: 1;
}

.achievement-title {
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 5px;
}

.achievement-description {
    font-size: 0.9em;
    color: #ffffff;
    opacity: 0.8;
}
